package cn.gdut.chengcai.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gdut.chengcai.dao.EmailTemplateInfoDao;
import cn.gdut.chengcai.entity.EmailTemplateInfo;
import cn.gdut.chengcai.entity.EmailTemplateInfoExample;
import cn.gdut.chengcai.service.EmailTemplateInfoService;

@Transactional
@Service
public class EmailTemplateInfoServiceImpl implements EmailTemplateInfoService {

	@Autowired
	private EmailTemplateInfoDao dao;

	@Override
	public long countByExample(EmailTemplateInfoExample example) {
		return this.dao.countByExample(example);
	}

	@Override
	public int deleteByExample(EmailTemplateInfoExample example) {
		return this.dao.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		return this.dao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(EmailTemplateInfo record) {
		return this.dao.insert(record);
	}

	@Override
	public int insertSelective(EmailTemplateInfo record) {
		return this.dao.insertSelective(record);
	}

	@Override
	public List<EmailTemplateInfo> selectByExample(EmailTemplateInfoExample example) {
		return this.dao.selectByExample(example);
	}

	@Override
	public EmailTemplateInfo selectByPrimaryKey(Long id) {
		return this.dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(EmailTemplateInfo record, EmailTemplateInfoExample example) {
		return this.dao.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(EmailTemplateInfo record, EmailTemplateInfoExample example) {
		return this.dao.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(EmailTemplateInfo record) {
		return this.dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(EmailTemplateInfo record) {
		return this.dao.updateByPrimaryKey(record);
	}

}
